/*
 * Copyright (c) 2025. hallele, Inc All rights reserved.
 */

package cn.hallele.ms.portalcenter.application.action.dept.update.info.flow;

import cn.hallele.infrastructure.util.DateUtil;
import cn.hallele.infrastructure.util.NetUtil;
import cn.hallele.infrastructure.util.bean.LoginUser;
import cn.hallele.ms.portalcenter.application.bo.DeptBO;
import cn.hallele.ms.starter.web.framework.node.ServiceFlow;
import com.yomahub.liteflow.annotation.LiteflowComponent;
import lombok.extern.slf4j.Slf4j;

/**
 * hallele_ms_portalcenter
 *
 * @author anle5
 * @since 2025/1/1 16:35
 */
@Slf4j
@LiteflowComponent
public class FillUpdateDeptParameterFlow extends ServiceFlow {
    @Override
    public void process() throws Exception {
        DeptBO deptBO = this.getRequestData();
        LoginUser loginUser = NetUtil.getLoginUser();
        deptBO.setUpdateBy(loginUser.getId());
        deptBO.setUpdateTime(DateUtil.nowDate());
    }
}
